/**
 * 广寒宫
 * 网址:www.guanghangong.xyz
 */
package com.moon.admin.sys.entity;

import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.moon.admin.framework.mybatisplus.entity.TenantEntity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 用户岗位关系表
 * @author ninglong
 */
@Getter
@Setter
@TableName("sys_user_post")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysUserPostEntity extends TenantEntity{

	@TableId(type=IdType.AUTO)
	private Integer id;
	private Integer userId;
	private Integer deptId;
	private Integer postId;
	/**是否为主岗位0-否，1-是*/
	private Integer primaryed;
	
	@TableField(exist=false)
	private List<Integer> ids;
	
	@TableField(exist=false)
	private String deptName;
	@TableField(exist=false)
	private String postName;
}